const path = require('path')
const webpack = require('webpack');
const packageinfo = require('./package.json')

module.exports = {
    entry: './src/index.js',
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: 'dtool.min.js',
        library:'dtool',
        libraryTarget: "umd",
    },
    plugins: [
        //输出版本信息
		new webpack.BannerPlugin(`pacakge version：${packageinfo.version} ${packageinfo.version} author:${packageinfo.author}`)
    ],
    mode: 'production'
}